import { getMedicalOrderDetail } from "@/api/order"
import type { MedicalOrderDetail } from "@/type/order"
import { ref } from "vue"

export const useMedic = (id: string) => {
  const orderDetail = ref({} as MedicalOrderDetail)
  const getOrderDetail = async() => {
    const data = await getMedicalOrderDetail(id)
    orderDetail.value = data
  }
  getOrderDetail()
  return {
    orderDetail
  }
}